package com.xszx.cms.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xszx.cms.entity.Banner;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author 白熊
 * @since 2024-07-22
 */

public interface BannerService extends IService<Banner> {

    List<Banner> selectAllBanner();//查询所有的banner信息

    void pageBanner(Page<Banner> pageParam, QueryWrapper queryWrapper);

    Banner getBannerById(String id) ;

    void saveBanner(Banner banner);

    void updateBannerById(Banner banner);

    void removeBannerById(String id);

}
